const { createProxyMiddleware } = require('http-proxy-middleware')

module.exports = function (app) {
    app.use(
        '/jsonp',//检查的前缀
        createProxyMiddleware({ 
            target: 'https://mce.mogucdn.com',//目标服务器
            changeOrigin: true
        }),
    )
    app.use(
        '/search',//检查的前缀
        createProxyMiddleware({
            target: 'https://list.mogujie.com',//目标服务器
            changeOrigin: true
        })
    )
    //https://mce.mogucdn.com/jsonp/multiget/3?appPlat=m&pids=117330&callback=jsonp117330&_=1600587215718

}